package com.mhc.suzuki.manager;

import com.subaru.common.query.PageResult;
import com.mhc.suzuki.dal.model.SnapshotDO;
import com.mhc.suzuki.dal.query.SnapshotQuery;

import java.util.List;


/**
 * Manager for Snapshot.
 */
public interface SnapshotManager {
    /**
     * query count by query condition.
     */
    int countByQuery(SnapshotQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(SnapshotQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(SnapshotDO record);

    /**
     * insert selective.
     */
    long insertSelective(SnapshotDO record);

    /**
     * select by query condition.
     */
    List<SnapshotDO> selectByQuery(SnapshotQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<SnapshotDO> selectByQueryWithPage(SnapshotQuery query);

    /**
     * select by primary key.
     */
    SnapshotDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( SnapshotDO record,  SnapshotQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(SnapshotDO record, SnapshotQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(SnapshotDO record);
}